import Vue from 'vue'
import Router from 'vue-router'
import Order from '../pages/Order/Order.vue'
import Ctiy from '../pages/Ctiy/Ctiy.vue'
import Sreach from '../pages/Sreach/Sreach.vue'
import Prefile from '../pages/Prefile/Prefile.vue'
import Detail from '../pages/Detail/Detail'
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/prefile'
    },
    {
      path: '/ctiy',
      name: 'ctiy',
      component: Ctiy
    },
    {
      path:'/detail/:id',
      name:'detail',
      component:Detail
    },
    {
      path: '/order',
      name: 'order',
      component: Order
    },
    {
      path: '/sreach',
      name: 'sreach',
      component: Sreach
    },
    {
      path: '/prefile',
      name: 'prefile',
      component: Prefile
    }
  ],
  linkActiveClass:'active'
})
